# Contributor: mio <miyopan@e.email>
# Maintainer: mio <miyopan@e.email>
pkgname=barcode
pkgver=0.99
pkgrel=0
pkgdesc="Convert text strings to printed bars in various standards"
url="https://www.gnu.org/software/barcode/"
license="GPL-3.0-or-later"
arch="all !ppc64le" # Build error on ppc64le
source="https://ftp.gnu.org/gnu/barcode/barcode-$pkgver.tar.gz"
options="!check" # No tests

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure CFLAGS="$CFLAGS -fcommon" --prefix=/usr
	make
}

package() {
	make install prefix="$pkgdir"/usr
}
sha512sums="
f500dbe7eaa657ed6879316835557533e0972c8740a8bb61bea46efdd4120827a3c412ca24fec6e1833395191521425dae272f10d8553a252896b363290118b1  barcode-0.99.tar.gz
"
